package com.pigotech.ptwo.utils;

import android.util.Log;

/**
 * Created by ghb on 2018/3/15.
 */

public class O {

    private static final String TAG = "P-TWO";
    private static final boolean isRelease = false;
    public static void o(Object o) {
        o(TAG, o);
    }
    public static void o(String tag, Object o){
        if(isRelease) {
            return;
        }

        Log.i(tag, "P-TWO: "+o);
    }
    public static void o(byte[] bytes){
        if(isRelease) {
            return;
        }

        String outStr="";
        for (byte b : bytes) {
            outStr+=String.format("%1$02X ", b);
        }
        o(TAG, outStr);
    }

    public static void e(String tag, String str) {
        Log.e(tag, str);
    }

    public static void d(String tag, String string) {
        Log.e(tag, string);
    }

    public static void w(String tag, String string) {
        Log.w(tag, string);
    }

    public static void v(String tag, String string) {
        Log.v(tag, string);
    }
}
